/**
 * 
 */
package com.lx.helloworld.eureka.client.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lx.helloworld.eureka.client.entity.User;
import com.lx.helloworld.eureka.client.service.UserService;


/* author:tracy.bai
date:2018年10月23日 上午11:39:15
 **/
/**
 * @author tracy.bai
 *
 */
@EnableEurekaClient
@RestController
public class usercontroller {

	@Autowired
    private UserService userService;

    @RequestMapping("/users/list")
    public List<User> list(){
        List<User> list = userService.findAllUser();
        return list;
    }

}
